a11y: Do not notify of empty state changes
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 5 Aug 2020 17:05:46 +0000 (18:05 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 25 Aug 2020 15:36:08 +0000 (16:36 +0100)
commit797b3bd1b11167b100add40e5f5b5f5815ab85f8
tree05daeebe2703b3228f679bcf65ed8164fc94d184
parent32a1cd13c8abd3015af5923344d463eee6a6d3a5
a11y: Do not notify of empty state changes

If the ATContext state hasn't changed—for instance, if the accessible
attributes have been set to their default value, or have been set to the
same value—do not emit an accessible state change. State changes can be
arbitrarily expensive, so we want to ensure that they are meaningful.
gtk/gtkatcontext.c
gtk/gtkatcontextprivate.h